from django.urls import path
from apps.authlab import views as alviews
from rest_framework_simplejwt.views import (
    TokenObtainPairView,
    TokenRefreshView,
    TokenVerifyView,
)


urlpatterns = [
    path("user/<str:username>", alviews.UserView.as_view()),
    path("login/", alviews.LoginView.as_view()),
    path("order/", alviews.OrderView.as_view()),
    path("profile/", alviews.ProfileView.as_view()),
    path("api/token", TokenObtainPairView.as_view(), name="token_obtain_pair"),
    path("api/token/refresh", TokenRefreshView.as_view(), name="token_refresh"),
    path("api/token/verify", TokenVerifyView.as_view(), name="token_verify"),
]